//判断是否为手机访问
export function isMobile() {
    let uaMatch = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
    let sizeMatch = window.matchMedia("(max-width: 425px)").matches;
    let widthMatch = window.screen.width < 425
    return uaMatch || sizeMatch || widthMatch;
}